home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-04-21 | 745 b | 35 lines | [TEXT/MPS ] |
- // The C++ Booch Components (Version 2.1)
- // (C) Copyright 1990-1993 Grady Booch. All Rights Reserved.
- //
- // BCStoreU.h
- //
- // This file contains the declaration of the unmanaged storage
- // management class utility
-
- #ifndef BCSTOREU_H
- #define BCSTOREU_H 1
-
- #include <stddef.h>
-
- // Class utility providing an unmanaged memory allocation/deallocation protocol
-
- class BC_CUnmanaged {
- public:
-
- static void* Allocate(size_t s)
- {return ::operator new(s);}
- static void Deallocate(void* p, size_t)
- {::operator delete(p);}
-
- private:
-
- BC_CUnmanaged() {}
- BC_CUnmanaged(const BC_CUnmanaged&) {}
- void operator=(const BC_CUnmanaged&) {}
- void operator==(const BC_CUnmanaged&) {}
- void operator!=(const BC_CUnmanaged&) {}
-
- };
-
- #endif
-